package com.xnyzc.lhy.mis.entity.user.tab;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* Tab权限配置表
*
* @author bin
* @since 2019-07-23
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaTabPermission对象", description="Tab权限配置表")
public class OaTabPermission implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value="permission_id", type = IdType.INPUT)
    private Long permissionId;

    @ApiModelProperty(value = "Tab ID")
    private Integer tabId;

    @ApiModelProperty(value = "Tab 名称")
    private String tabName;

    @ApiModelProperty(value = "提示语")
    private String tabHint;

    @ApiModelProperty(value = "用户类型（0：用户、1：司机、2：管理员）")
    private Integer userType;

    @ApiModelProperty(value = "是否启用（0：否、1：是）")
    private Integer isEnable;

    @ApiModelProperty(value = "排序")
    private BigDecimal sort;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String PERMISSION_ID = "permission_id";

    public static final String TAB_ID = "tab_id";

    public static final String TAB_NAME = "tab_name";

    public static final String TAB_HINT = "tab_hint";

    public static final String USER_TYPE = "user_type";

    public static final String IS_ENABLE = "is_enable";

    public static final String SORT = "sort";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
